<div class="weadmin-body">
    <form class="layui-form" data-form='{:request()->url()}'>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="we-red">*</span>视频标题
            </label>
            <div class="layui-input-inline">
                <input type="text" id="title" name="title" required="" lay-verify="required"  class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="we-red">*</span>视频标题
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 上传视频 </label>
            <div class="col-sm-6">
                <div id="uploader" class="wu-example">
                    <!--用来存放文件信息-->
                    <div class="filename"></div>
                    <div class="state"></div>
                    <div class="progress">
                        <div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar" aria-valuenow="40" aria-valuemin="0"
                             aria-valuemax="100" style="width: 0%">
                            <span class="sr-only">40% Complete (success)</span>
                        </div>
                    </div>
                    <input type="hidden" name="vedio">
                    <div class="btns">
                        <div id="picker">选择文件</div>
                        <button id="ctlBtn" class="btn btn-default">开始上传</button>
                        <div id="pause" class="btn btn-danger">暂停上传</div>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-form-item layui-col-xs10 layui-col-xs-offset2">
            {if isset($vo.id)}<input type="hidden" name="id" value="{$vo.id}">{/if}
            <button class="layui-btn" lay-submit="">确定</button>
        </div>
    </form>
</div>

<script>

    layui.use('form',function () {
        layui.form.render();
    })
</script>